<?php
namespace app\mall_back\model;

use think\admin\Model;

class UserWalletDetailedModel extends Model{

    protected $table = 'one_user_wallet_detailed';

    public function getTypeTextAttr($value,$data){
        $typeMap = [1=>'支付宝充值',2=>'微信充值',3=>'后台充值',4=>'购买',5=>'提现',6=>'兑换',7=>'分佣',8=>'积分返还',
            21=>'转盘抽奖',22=>'转盘抽奖奖励'
        ];
        return $typeMap[$data['type']];
    }


}